const express=require('express')
const cors=require('cors')
const app=express()
app.use(cors())
app.get('/goods',(req,res)=>{
    res.send([
        {
            mc:'跑步机',
            jg:1879,
            img:'https://assets.shuhua.cn/workspace/uploads/images/products/sh-t8919t-y50-v9+-2.jpg'
        },
        {
            mc:'小米',
            jg:109,
            img:'https://assets.shuhua.cn/workspace/uploads/images/products/sh-t8919t-y50-v9+-2.jpg'
        },
        {
            mc:'苹果',
            jg:55,
            img:'https://assets.shuhua.cn/workspace/uploads/images/products/sh-t8919t-y50-v9+-2.jpg'
        },
    ])
})
app.listen(3000,(req,res)=>{
    console.log('启动');
})